package coganh.Activity;

import splash.SplashThread;
import splash.SplashView;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MotionEvent;

public class Splash extends Activity {
	@SuppressWarnings("unused")
	private SplashThread mSplashThread;
	private SplashView mSplashView;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_splash);
		mSplashView = (SplashView) findViewById(R.id.splashview);
		mSplashThread = mSplashView.getThread();
	}

	@Override
	public boolean onTouchEvent(MotionEvent event) {
		Intent mIntent=new Intent();
		mIntent.setClass(this, MainMenu.class);
		this.startActivity(mIntent);
		return super.onTouchEvent(event);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.activity_splash, menu);
		return true;
	}
}
